home *** CD-ROM | disk | FTP | other *** search
/ C/C++ Users Group Library 1996 July / C-C++ Users Group Library July 1996.iso / vol_100 / 163_02 / strcat.c < prev    next >
Text File  |  1988-01-30  |  384b  |  11 lines

  1. /*
  2. ** append s2 to the end of s1
  3. */
  4. strcat(s1, s2) char *s1, *s2; {
  5.   char *strcat;
  6.   strcat = s1;
  7.   while(*s1) s1++;
  8.   while(*s1++ = *s2++);
  9.   return strcat;
  10.   }
  11.